﻿<Window xmlns:my="clr-namespace:Shoozla.View"  x:Class="Shoozla.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:s="clr-namespace:Shoozla"
        xmlns:sv="clr-namespace:Shoozla.ViewModel"
        Title="Shoozla" Height="689" Width="1017"
        Background="Transparent" WindowStartupLocation="CenterScreen" WindowStyle="ThreeDBorderWindow" VerticalAlignment="Stretch" UseLayoutRounding="False" Loaded="Window_Loaded">
    <Window.TaskbarItemInfo>
        <TaskbarItemInfo x:Name="progressBarTaskBar" ProgressState="Normal" ProgressValue="0">
        </TaskbarItemInfo>
    </Window.TaskbarItemInfo>
    <DockPanel x:Name="mainDP">
        <WrapPanel DockPanel.Dock="Top" Background="{StaticResource BackgroundBrush}">
            <WrapPanel DockPanel.Dock="Top" Height="75" Width="995">
                <Image HorizontalAlignment="Left" DockPanel.Dock="left"  Name="titleIM"  Width="250" Height="75" VerticalAlignment="Center" Source="/Shoozla;component/Images/title.png"/>
                    <Button x:Name="OpenFolderBT" Command="{Binding Path=CmdOpenFolder}" Width="90" Height="70" ToolTip="Open Folder" Style="{DynamicResource CmdButton}" >
                    <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Image HorizontalAlignment="Center" Source="/Shoozla;component/Images/Folder.ico" Height="45" />
                        <TextBlock HorizontalAlignment="Center">Open Folder</TextBlock>
                    </StackPanel>
                </Button>
                    <Button x:Name="SaveBT" Command="{Binding Path=CmdSave}" Width="50" ToolTip="Save" Style="{DynamicResource CmdButton}" >
                    <StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center">
                        <Image HorizontalAlignment="Center" Source="/Shoozla;component/Images/Save.png" Height="45" />
                        <TextBlock HorizontalAlignment="Center">Save</TextBlock>
                    </StackPanel>
                </Button>
                <Button x:Name="SearchBT" Command="{Binding Path=CmdSearch}"  Style="{DynamicResource CmdButton}"  ToolTip="Search covers">
                    <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Image HorizontalAlignment="Center" Source="/Shoozla;component/Images/search.png" Height="45" />
                        <TextBlock HorizontalAlignment="Center">Search Covers</TextBlock>
                    </StackPanel>
                </Button>
               
            </WrapPanel>
        </WrapPanel>
        <StatusBar DockPanel.Dock="Bottom" Height="30" BorderThickness="0,1,0,0" BorderBrush="Gray" Background="{StaticResource BackgroundBrush}">          
                <TextBlock >File saved:</TextBlock>
                <TextBlock Margin="2,0,0,0" Text="{Binding Logger.FilesSaved}"></TextBlock>
            <Separator />
                <TextBlock > Covers found: </TextBlock>
                <TextBlock Margin="2,0,0,0" Text="{Binding Logger.CoversFound}"></TextBlock>
            <Separator />           
            <TextBlock Margin="0,0,0,0">Mp3:</TextBlock>

            <TextBlock Margin="2,0,0,0" Name="mp3FilesTB" Text="{Binding Logger.FilesProcessed}" />
            <Separator />          

            <Button Width="50" Height="23" Command="{Binding Path=CmdAbout}">About</Button>
            <Separator />
            <Button Width="50" Height="23" Command="{Binding Path=CmdOpenFLog}">Log</Button>
        </StatusBar>
        <s:FolderExplorerControl x:Name="mainFE" SelectedFolderChanged="mainFE_SelectedFolderChanged" DockPanel.Dock="Left" MinWidth="250" />
        <my:ID3TagControl DockPanel.Dock="Bottom" x:Name="tagEditor" />
        <ContentPresenter x:Name="mainContentSP" Content="{Binding Path=CurrentView}" />     
    </DockPanel>

</Window>
